﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using RoadTeam.Model;
using RoadTeam.Enums;
using RoadTeam.SysInterface;

namespace RoadTeam.BsSystem.RM
{
    public class RmBuilding_Sys : IRmBuilding
    {
        public DataTable GetBuildingData(String Where)
        {
            SqlWhere where = new SqlWhere();
            where.StrSqlWhere = @"BuildingID in (" + Where + ")";
            where.SelectColumn = @" BuildingID,BuildingIdentifier ";
            return TbRmBuilding.Select(where, GlobalConfig.RtConnectionString);
        }
        public bool UpdateBuildingData(DataTable dt)
        {
            return TbRmBuilding.Update(dt, GlobalConfig.RtConnectionString);
        }
    }
}
